﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace ComeSeeThis_MVC2.Models
{
    public class OperationForm
    {
        public List<aspnet_Operation> Operations { get; private set; }
        public aspnet_Roles Role { get; private set; }

        public OperationForm(Guid roleId)
        {
            Role = new SecurityRepository().GetRole(roleId);
            Operations = Role.aspnet_Operations.OrderBy(x=>x.Name).ToList();
        }
    }
}